javascript sets

sets are a collection of some unique value.

how to create a set

how to add values to a blank set:

adding a equal or same or duplicate element to a set:

the foreach() method

foreach() calls a function for each element in the set